package work1;

public class Test {
    public static void main(String[] args) {
        Breeder b = new Breeder();
        b.method(new Dog());

        b.method(new Frog());

        b.method(new Sheep());
    }
}
